package com.tencreat.mapper.account;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tencreat.common.core.HttpResult;
import com.tencreat.domain.account.MallStore;
import com.tencreat.domain.account.MallSupplier;
import com.tencreat.domain.account.vo.MallStoreRespVo;
import com.tencreat.domain.account.vo.MallSupplierRespVo;
import com.tencreat.domain.mall.dto.MallGoodsSearchDTO;
import com.tencreat.domain.mall.vo.MallGoodsDetailsVO;
import com.tencreat.domain.mall.vo.MallGoodsListVO;
import com.tencreat.domain.mall.vo.MallStoreGoodsVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 【请填写功能名称】Mapper接口
 *
 * @author tencreat
 * @date 2021-09-17
 */
public interface MallStoreMapper extends BaseMapper<MallStore> {

    @InterceptorIgnore(tenantLine = "1")
    IPage<MallStoreRespVo> queryAll(@Param("page") Page<MallStore> page, @Param("param") MallStore mallStore);

    IPage<MallStore> getApiList(@Param("page") IPage<MallStore> mallGoodsIPage, @Param("mallGoodsSearchPo") MallGoodsSearchDTO mallGoodsSearchPo);

    Long selectStoreApprovalStatus(Long uuid);

    /**
     * 分页查询
     *
     * @param iPage     分页参数
     * @param mallStore 查询条件
     * @return 分页结果
     */
    IPage<MallGoodsListVO> page(IPage<?> iPage, @Param("param") MallGoodsSearchDTO mallStore);

    List<MallGoodsListVO> storeListTwo(Long id);


    MallStore selectStoreById(Long id);

    List<MallStore> selectStoreByName(String storeName);

    MallStore selectUserById(Long userId);

    MallStoreGoodsVO category(Long userId);

    MallStore getMobileById(Long id);

    MallGoodsDetailsVO storeInfo(@Param("id") Long id, @Param("dimensionality") String dimensionality, @Param("longitude") String longitude);
}
